{% extends "base.html" %}
{% from "security/_macros.html" import render_field_with_errors, render_field %}
{% block content %}

	<h1>Reset password</h1>
	<form action="{{ url_for_security('reset_password', token=reset_password_token) }}" method="POST" name="reset_password_form">
      {{ reset_password_form.hidden_tag() }}
      {{ reset_password_form.csrf_token }}
      {{ wtf.form_errors(reset_password_form, hiddens="only") }}

	  {{ wtf.form_field(reset_password_form.password) }}
	  {{ wtf.form_field(reset_password_form.password_confirm) }}

      <div class="controls">
          {{ wtf.form_field(reset_password_form.submit) }}
      </div>
	</form>

	{% include "security/_menu.html" %}
{% endblock %}
